Improve speed of setting sound string as well

This commit is contained in:
Brandon Presley 2022-12-30 20:38:34 +13:00
parent 3fdc5900e3
commit 7863b9caa0
1 changed files with 1 additions and 1 deletions

View File

@ -61,8 +61,8 @@ export default function SettingsPage() {
copyTo: 'documentDirectory',
})
if (!fileCopyUri) return
await settingsRepo.save({...settings, sound: fileCopyUri})
setValue('sound', fileCopyUri)
await settingsRepo.save({...settings, sound: fileCopyUri})
toast('Sound will play after rest timers.')
}, [settings, setValue])