Dont use ??=

zio/stable
Paul Frazee 2022-12-15 10:21:25 -06:00
parent d0a437f8fb
commit c5ac23047a
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ export const ViewHeader = observer(function ViewHeader({
console.log(e)
})
}
canGoBack ??= store.nav.tab.canGoBack
if (typeof canGoBack === 'undefined') {
canGoBack = store.nav.tab.canGoBack
}
return (
<View style={styles.header}>
<TouchableOpacity