Skip to content

Commit f5346db

Browse files
author
CsB-Polymesh
committed
fix code and console errors
1 parent 87b4aeb commit f5346db

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/layouts/SecondaryKeys/components/AddPermission/components/AssetPermissionSelector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ export const AssetPermissionSelector = ({
491491
<SelectedAssetsContainer>
492492
<SelectedAssetsHeader>
493493
<SelectedAssetsCount>
494-
{selectedAssets.length} asset{selectedAssets.length === 1 ? '' : 's'} selected
494+
{selectedAssets.length} asset
495+
{selectedAssets.length === 1 ? '' : 's'} selected
495496
</SelectedAssetsCount>
496497
<ClearAllButton
497498
type="button"

src/layouts/SecondaryKeys/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const SecondaryKeys = () => {
7979
);
8080
setSecondaryKeys(keysWithPermissions);
8181
} catch (error) {
82-
console.error('Failed to fetch secondary keys:', error);
82+
// Error is already handled by the transaction context
8383
setSecondaryKeys([]);
8484
} finally {
8585
setLoading(false);
@@ -124,7 +124,6 @@ const SecondaryKeys = () => {
124124
);
125125
} catch (error) {
126126
// Error is already handled by the transaction context
127-
console.error('Failed to remove permissions:', error);
128127
}
129128
}, [keyToRemove, identity, sdk, executeTransaction, refreshSecondaryKeys]);
130129

@@ -157,7 +156,6 @@ const SecondaryKeys = () => {
157156
);
158157
} catch (error) {
159158
// Error is already handled by the transaction context
160-
console.error('Failed to modify permissions:', error);
161159
}
162160
},
163161
[identity, sdk, executeTransaction, refreshSecondaryKeys],

0 commit comments

Comments
 (0)