diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-09 01:07:38 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-09 01:14:52 +0800 |
commit | ec198343b551020cfed321937d680af59c2ce127 (patch) | |
tree | 89e15ec9f13325d82dc159254baf6ca27171e729 /packages/website/ts/components/fill_order.tsx | |
parent | 1233c33116a389f34ac90768c5ef43c8bbfbf514 (diff) | |
download | dexon-0x-contracts-ec198343b551020cfed321937d680af59c2ce127.tar.gz dexon-0x-contracts-ec198343b551020cfed321937d680af59c2ce127.tar.zst dexon-0x-contracts-ec198343b551020cfed321937d680af59c2ce127.zip |
Make naming of schemas consistent
Diffstat (limited to 'packages/website/ts/components/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index 2582581b1..063c57688 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -18,7 +18,7 @@ import { EthereumAddress } from 'ts/components/ui/ethereum_address'; import { Identicon } from 'ts/components/ui/identicon'; import { VisualOrder } from 'ts/components/visual_order'; import { Dispatcher } from 'ts/redux/dispatcher'; -import { orderSchema } from 'ts/schemas/order_schema'; +import { portalOrderSchema } from 'ts/schemas/portal_order_schema'; import { validator } from 'ts/schemas/validator'; import { AlertTypes, BlockchainErrs, Order, Token, TokenByAddress, WebsitePaths } from 'ts/types'; import { colors } from 'ts/utils/colors'; @@ -400,7 +400,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { let orderHash: string; try { const order = JSON.parse(orderJSON); - const validationResult = validator.validate(order, orderSchema); + const validationResult = validator.validate(order, portalOrderSchema); if (validationResult.errors.length > 0) { orderJSONErrMsg = 'Submitted order JSON is not a valid order'; utils.consoleLog(`Unexpected order JSON validation error: ${validationResult.errors.join(', ')}`); |