Skip to content

Commit b18608e

Browse files
committed
Move auth check in services to catch errors
1 parent 2795a23 commit b18608e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/blocks/aws/src/lib/actions/get-price-action.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ export const getPriceAction = createAction({
3434
};
3535
}
3636

37-
const credentials = await getCredentialsForAccount(
38-
auth,
39-
account?.['accounts'],
40-
);
4137
try {
38+
const credentials = await getCredentialsForAccount(
39+
auth,
40+
account?.['accounts'],
41+
);
4242
const services = await getServices(credentials, PRICING_REGION);
4343

4444
if (!services.length) {

0 commit comments

Comments
 (0)