Skip to content

Commit 95a8734

Browse files
committed
fix: code improvement
1 parent e4c8214 commit 95a8734

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

packages/sdk-multichain/src/domain/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ t.describe('Platform Detection', () => {
196196
});
197197

198198
t.it('should handle global navigator.product being ReactNative', () => {
199-
t.vi.stubGlobal('window', undefined);
200199
t.vi.stubGlobal('global', {
201200
navigator: {
202201
product: 'ReactNative',

packages/sdk-multichain/src/domain/platform/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function isNotBrowser() {
2626

2727
function isReactNative() {
2828
return (
29-
isNotBrowser() &&
3029
typeof window !== 'undefined' &&
3130
window?.navigator &&
3231
window.navigator?.product === 'ReactNative'

0 commit comments

Comments
 (0)