Dont use ??=
This commit is contained in:
parent
d0a437f8fb
commit
c5ac23047a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue