fit get applications (#114)
This commit is contained in:
1 parent
7c8a649047
commit
5eb453dec2
17 files changed
+113
-35
No files matched your search
@@ -87,9 +87,19 @@ export const getApplications = async ({
|
||||
if (application && application?.remaining_amount) {
|
||||
console.debug('set application with Period', application);
|
||||
commit('setApplication', application);
|
||||
const credential = application?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Period', application);
|
||||
commit('setCredential', credential);
|
||||
} else if (application2) {
|
||||
console.debug('set application with Usage', application2);
|
||||
commit('setApplication', application2);
|
||||
const credential = application2?.credentials?.find(
|
||||
(credential) => credential?.host === window.location.origin
|
||||
);
|
||||
console.debug('set credential with Usage', application);
|
||||
commit('setCredential', credential);
|
||||
}
|
||||
resolve(response.data.items);
|
||||
console.debug('save applications success', response.data.items);
|
||||
|
||||
Reference in new issue
Block a user