Minor fix: update novel toast

This commit is contained in:
nyagami
2024-06-08 22:06:12 +07:00
parent e3def3821e
commit fb0649f07f
+5 -1
View File
@@ -137,7 +137,11 @@ const Novel = ({ route, navigation }: NovelScreenProps) => {
refreshNovelMetadata,
})
.then(() => getNovel())
.then(() => showToast(getString('novelScreen.updatedToast', { name })))
.then(() =>
showToast(
getString('novelScreen.updatedToast', { name: novel.name }),
),
)
.catch(error => showToast(error.message))
.finally(() => setUpdating(false));
}