Skip to content

Commit

Permalink
Merge pull request #110 from offtherailz/101
Browse files Browse the repository at this point in the history
#101 show max request message when the limit is 0
  • Loading branch information
Tobia Di Pisa authored Mar 30, 2021
2 parents b157e0c + b761334 commit ae71948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/extension/components/modals/Request.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function RequestFormModal({
});
}
// Set available requests from the response, else set max request from configuration
data.requestAvailable ? setAvailableRequest(+data.requestAvailable) : setAvailableRequest(+maxRequest);
data.requestAvailable || data.requestAvailable === 0 ? setAvailableRequest(+data.requestAvailable) : setAvailableRequest(+maxRequest);
setCheckingLimit(false);
}).catch(()=>{
setAvailableRequest(0);
Expand Down

0 comments on commit ae71948

Please sign in to comment.