Skip to content

Commit

Permalink
@pipeos/react-function-call-ui - quick fix for rust types (checkNonSt…
Browse files Browse the repository at this point in the history
…ring)
  • Loading branch information
loredanacirstea committed Mar 22, 2020
1 parent 905f772 commit 8d8c0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/packages/react-function-call-ui/src/FunctionIo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from 'native-base';

const nonStringTypes = ['int', 'float', 'tuple', 'boolean'];
const checkNonString = itemType => nonStringTypes.find(typ => itemType.includes(typ));
const checkNonString = itemType => nonStringTypes.find(typ => (itemType.includes(typ) || itemType[0] === 'i' || itemType[0] === 'u'));
const decodeValueString = value => value || '';
const encodeValueString = value => value || '';
const decodeValueNonString = value => value ? JSON.parse(value) : null;
Expand Down

0 comments on commit 8d8c0b0

Please sign in to comment.