From 283e45cf3aa0c7e10c92d41ef4af9da2f43d434c Mon Sep 17 00:00:00 2001 From: Steve C Date: Mon, 9 Sep 2024 23:37:55 -0400 Subject: [PATCH] fix hash in `Thanks for showing us` banner --- app/assets/javascripts/outfits/new.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/outfits/new.js b/app/assets/javascripts/outfits/new.js index ec2618a7..5fcc1d26 100644 --- a/app/assets/javascripts/outfits/new.js +++ b/app/assets/javascripts/outfits/new.js @@ -12,10 +12,14 @@ if (PetQuery.name) { if (PetQuery.species && PetQuery.color) { + var image_url = petImage("cpn/" + PetQuery.name, 1); + if (PetQuery.name.startsWith("@")) { + image_url = petImage("cp/" + PetQuery.name.substr(1), 1); + } $("#pet-query-notice-template") .tmpl({ pet_name: PetQuery.name, - pet_image_url: petImage("cpn/" + PetQuery.name, 1), + pet_image_url: image_url, }) .prependTo("#container"); }