Skip to content

Commit 950f0aa

Browse files
committed
Update useGetEServiceConsumerActions.ts
1 parent 5b9a820 commit 950f0aa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/hooks/useGetEServiceConsumerActions.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ function useGetEServiceConsumerActions(
5454
})
5555
})
5656
.otherwise(() => {
57-
// TODO handle multiple agreements
57+
openDialog({
58+
type: 'selectAgreementConsumer',
59+
eserviceId: eservice.id,
60+
agreements: eservice.agreements,
61+
action: 'inspect',
62+
})
5863
})
5964
}
6065

@@ -69,7 +74,12 @@ function useGetEServiceConsumerActions(
6974
})
7075
})
7176
.otherwise(() => {
72-
// TODO handle multiple agreements
77+
openDialog({
78+
type: 'selectAgreementConsumer',
79+
eserviceId: eservice.id,
80+
agreements: eservice.agreements,
81+
action: 'edit',
82+
})
7383
})
7484
}
7585

0 commit comments

Comments
 (0)