diff --git a/.changeset/green-years-vanish.md b/.changeset/green-years-vanish.md new file mode 100644 index 000000000000..de88f0b4e41d --- /dev/null +++ b/.changeset/green-years-vanish.md @@ -0,0 +1,5 @@ +--- +"live-mobile": patch +--- + +Delete local app data when uninstalling apps diff --git a/apps/ledger-live-mobile/src/screens/MyLedgerDevice/shared.ts b/apps/ledger-live-mobile/src/screens/MyLedgerDevice/shared.ts index 384f2354b19b..608b5e8ac8c0 100644 --- a/apps/ledger-live-mobile/src/screens/MyLedgerDevice/shared.ts +++ b/apps/ledger-live-mobile/src/screens/MyLedgerDevice/shared.ts @@ -19,12 +19,12 @@ export function useApps( const enableAppsBackup = useFeature("enableAppsBackup"); const exec: Exec = useCallback( - args => + ({ deleteAppDataBackup, ...args }) => withDevice(device.deviceId)(transport => execWithTransport( transport, enableAppsBackup?.enabled, - )({ ...args, storage, modelId: device.modelId }), + )({ ...args, storage, modelId: device.modelId, deleteAppDataBackup }), ), [device, enableAppsBackup, storage], );