Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
fix(sdk): always return no free transactions if apiKey is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaWang committed Feb 14, 2020
1 parent cc38238 commit 0255241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/extension/src/client/utils/getApiKeyQuota.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import Web3Service from '~/client/services/Web3Service';
const urlPattern = urls.apiKeyQuota;

export default async function getApiKeyQuota(apiKey) {
if (!apiKey) {
return {
hasFreeTransactions: false,
};
}

const {
networkId,
} = Web3Service;
Expand Down

0 comments on commit 0255241

Please sign in to comment.