Skip to content

Commit afad243

Browse files
authored
fix: Add null check for pretty value (#55)
1 parent ce54e36 commit afad243

File tree

2 files changed

+309
-285
lines changed

2 files changed

+309
-285
lines changed

services/decoder/native/native.decoder.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { currencyToNumber } from "../../../utils/functions";
44
import { DECODED_ACTION, DECODED_EVENT_CATEGORY } from "../decoder.constants";
55

66
GoldRushDecoder.native((tx, options): EventType | null => {
7-
if (currencyToNumber(tx.pretty_value_quote) < options.min_usd!) {
7+
if (
8+
tx.pretty_value_quote &&
9+
currencyToNumber(tx.pretty_value_quote) < options.min_usd!
10+
) {
811
return null;
912
}
1013

0 commit comments

Comments
 (0)