Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 98af18d

Browse files
authored
Merge pull request #288 from nevermined-io/fix/not-ask-sign-again
Fix/not ask sign again
2 parents 4291ed4 + 4084352 commit 98af18d

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v1.3.5](https://github.com/nevermined-io/components-catalog/compare/v1.3.4...v1.3.5)
8+
9+
> 26 April 2023
10+
11+
- Bump: sdk@1.3.6 [`#283`](https://github.com/nevermined-io/components-catalog/pull/283)
12+
- Adding v1.3.4 Changelog updates [`ae984b3`](https://github.com/nevermined-io/components-catalog/commit/ae984b34eb99a300a58046c35a2600c4a0c3d608)
13+
- bump: libs versions [`2396266`](https://github.com/nevermined-io/components-catalog/commit/2396266601cfc4d3a5496fc12c2c8fe8ae29d91b)
14+
- bump: sdk-dtp [`2434e49`](https://github.com/nevermined-io/components-catalog/commit/2434e496aff66519c74d09d620606d26ee82e377)
15+
16+
#### [v1.3.4](https://github.com/nevermined-io/components-catalog/compare/v1.3.3...v1.3.4)
17+
18+
> 24 April 2023
19+
20+
- Feat add search options [`#282`](https://github.com/nevermined-io/components-catalog/pull/282)
21+
- add search options to get published and purchased subscriptions [`738645e`](https://github.com/nevermined-io/components-catalog/commit/738645e69d1d588e809ce2349a0b2bfa79823c53)
22+
- Adding v1.3.3 Changelog updates [`acc61aa`](https://github.com/nevermined-io/components-catalog/commit/acc61aa999e7ed020635cc64e455f1c3e5aa4762)
23+
724
#### [v1.3.3](https://github.com/nevermined-io/components-catalog/compare/v1.3.2...v1.3.3)
825

926
> 21 April 2023

catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/catalog",
3-
"version": "1.3.7",
3+
"version": "1.3.8",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"dependencies": {

catalog/src/catalog.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ export const NeverminedProvider = ({ children, config, verbose }: NeverminedProv
158158
getAddressTokenSigner: (): string => String(getAddressTokenSigner()),
159159
generateToken: async (): Promise<MarketplaceAPIToken> => {
160160
const tokenData = await newMarketplaceApiToken(sdk)
161+
if(!tokenData.token) {
162+
return {
163+
token: ''
164+
}
165+
}
161166
const { data } = await initializeNevermined({
162167
...config,
163168
marketplaceAuthToken: tokenData.token

catalog/src/services/account.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export const useUserProfile = (
410410
}, [isUpdated, isAddressAdded])
411411

412412
useEffect(() => {
413-
(async () => {
413+
void (async () => {
414414
try {
415415
if (!walletAddress || !sdk?.services?.profiles || userProfileLoadingStatus === 'loading') {
416416
return
@@ -465,7 +465,7 @@ export const useUserProfile = (
465465
}
466466
}
467467
})()
468-
}, [sdk.services?.profiles, walletAddress, reloadTrigger])
468+
}, [sdk?.services?.profiles, walletAddress, reloadTrigger])
469469

470470
return {
471471
inputError,
@@ -501,7 +501,7 @@ export const useIsAssetHolder = (did: string, walletAddress: string): { ownAsset
501501
return
502502
}
503503

504-
(async () => {
504+
void (async () => {
505505
const purchased = await loadFulfilledEvents(sdk, walletAddress, 'accessCondition')
506506

507507
const purchasedDDO = await Promise.all(
@@ -536,7 +536,7 @@ export const useIsNFT1155Holder = (did: string, walletAddress: string): { ownNFT
536536
return
537537
}
538538

539-
(async () => {
539+
void (async () => {
540540
const walletAccount = new Account(walletAddress)
541541
if (walletAccount) {
542542
const balance = await sdk.nfts1155.balance(did, walletAccount)
@@ -575,7 +575,7 @@ export const useIsNFT721Holder = (
575575
return
576576
}
577577

578-
(async () => {
578+
void (async () => {
579579
const walletAccount = new Account(walletAddress)
580580
if (walletAccount) {
581581
const nft721 = await sdk.contracts.loadNft721(nftAddress)

catalog/unit-tests/services/services.account.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ describe('Account Service', () => {
127127
})
128128

129129
setWallet(walletAddress2)
130+
130131
if(newAddress && addresses.length < 2) addAddress()
131132
} catch (error: any) {
132133
console.error(error.message)

providers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nevermined-io/providers",
33
"private": false,
4-
"version": "1.3.7",
4+
"version": "1.3.8",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"dependencies": {

0 commit comments

Comments
 (0)