Skip to content

Commit

Permalink
fixed bug of (
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboCopGay committed Oct 26, 2019
1 parent 7234195 commit 4530328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function Button(props){
}}>
<Text
style={{
fontSize: ((SIZE*0.20)*0.75),
fontSize: ((SIZE*0.18)*0.75),
borderRadius: 6,
textAlign: 'center',
padding: 10,
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default function Calc(){

var oper = '*/-+';

if (value=='('){
if (value==='(' && CACHE!==''){
var char = '*';
for (var c in oper){
if ( oper[c] === CACHE.slice(-1)[0] ){
char = oper[c];
char = '';
}
}
value = char+value;
Expand Down

0 comments on commit 4530328

Please sign in to comment.