This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 54d80c0 committed Nov 6, 2024 · 36 / 51
1 parent 2e997ec commit 54d80c0 Copy full SHA for 54d80c0
File tree 4 files changed +5
-3
lines changed
views/dashboard/PortfolioCard
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ module.exports = {
61
61
rules : {
62
62
'no-extra-boolean-cast' : 'error' ,
63
63
'no-irregular-whitespace' : 'error' ,
64
+ 'no-constant-binary-expression' : 'error' ,
64
65
'no-empty' : 'error' ,
65
66
'@typescript-eslint/no-empty-object-type' : 'off' ,
66
67
'@typescript-eslint/no-require-imports' : 'off' ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ filteredFixtures.forEach(f => {
62
62
// - fixture require different device than prev fixture, or
63
63
// - fixture is retried
64
64
// FIXME: always reset for now, due to flaky tests with bridge bug
65
+ // eslint-disable-next-line no-constant-binary-expression
65
66
if ( true || JSON . stringify ( device ) !== JSON . stringify ( f . device ) || retry ) {
66
67
device = f . device ;
67
68
await TrezorUserEnvLink . stopBridge ( ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export const Pagination = ({
99
99
< PageItem
100
100
key = { i }
101
101
data-testid = { `@wallet/accounts/pagination/${ i } ` }
102
- data-test-activated = { i === currentPage ?? 'true' }
102
+ data-test-activated = { i === currentPage }
103
103
onClick = { ( ) => onPageSelected ( i ) }
104
104
$isActive = { i === currentPage }
105
105
>
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ export const PortfolioCard = memo(() => {
77
77
}
78
78
79
79
const isWalletEmpty = ! discoveryStatus && isDeviceEmpty ;
80
- const isWalletLoading = discoveryStatus ?. status === 'loading' ?? false ;
81
- const isWalletError = discoveryStatus ?. status === 'exception' ?? false ;
80
+ const isWalletLoading = discoveryStatus ?. status === 'loading' ;
81
+ const isWalletError = discoveryStatus ?. status === 'exception' ;
82
82
const showGraphControls =
83
83
! isWalletEmpty && ! isWalletLoading && ! isWalletError && ! dashboardGraphHidden ;
84
84
You can’t perform that action at this time.
0 commit comments