mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 07:28:07 +01:00
Update blue_modules/currency.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
01ee103cc9
commit
b3fc16fe64
1 changed files with 6 additions and 2 deletions
|
@ -70,8 +70,12 @@ async function migrateAsyncStorageToDefaultPreference(): Promise<void> {
|
|||
} catch (error) {
|
||||
console.error('Failed to parse exchange rates from AsyncStorage:', error);
|
||||
} finally {
|
||||
await AsyncStorage.removeItem(EXCHANGE_RATES_STORAGE_KEY);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to parse exchange rates from AsyncStorage:', error);
|
||||
} else {
|
||||
// Remove from AsyncStorage only if migration was successful
|
||||
await AsyncStorage.removeItem(EXCHANGE_RATES_STORAGE_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('Migration from AsyncStorage to DefaultPreference completed.');
|
||||
|
|
Loading…
Add table
Reference in a new issue