mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Handle case when price is not a number
And return a `null` if so.
This commit is contained in:
@@ -129,3 +129,6 @@ describe 'convert string to number with configurated currency', ->
|
||||
|
||||
it "undefined case ", ->
|
||||
expect(filter(undefined)).toEqual null
|
||||
|
||||
it "wtf case", ->
|
||||
expect(filter("wtf")).toEqual null
|
||||
|
||||
Reference in New Issue
Block a user