diff --git a/pkg/util/keyer/parser.go b/pkg/util/keyer/parser.go
index 45ed3ebf1..4023e3981 100644
--- a/pkg/util/keyer/parser.go
+++ b/pkg/util/keyer/parser.go
@@ -36,9 +36,9 @@ func (d *Dashboard) ParseString(data string) error {
 	)
 
 	// data could be encoded in base58 or hex formats, try both
-	rawData, err = base58.Decode(data)
+	rawData, err = hex.DecodeString(data)
 	if err != nil {
-		rawData, err = hex.DecodeString(data)
+		rawData, err = base58.Decode(data)
 		if err != nil {
 			return fmt.Errorf("data is not hex or base58 encoded: %w", err)
 		}