1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Fix possible new reference

This commit is contained in:
Adria Navarro 2024-04-26 15:52:39 +02:00
parent 1066c638df
commit 16ea4195df

View file

@ -8,6 +8,10 @@ const isBetterSample = (newValue, oldValue) => {
return true
}
if (oldValue != null && newValue == null) {
return false
}
// Don't change type
const oldType = typeof oldValue
const newType = typeof newValue