Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pethub/backend/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,8 @@ const wizard = {
<div id="toilet_poop_options" style="display: none;">
<h3>Poop Score</h3>
<div class="row" style="align-items: center; margin-bottom: 0;">
<input type="range" min="1" max="7" value="4" id="poop_score" style="flex: 1; max-width: 400px;">
<span id="poop_score_val" style="min-width: 40px; text-align: center; font-weight: bold;">4</span>
<input type="range" min="1" max="7" value="2" id="poop_score" style="flex: 1; max-width: 400px;">
<span id="poop_score_val" style="min-width: 40px; text-align: center; font-weight: bold;">2</span>
</div>
</div>

Expand Down Expand Up @@ -825,8 +825,8 @@ const wizard = {
this.data.location = $('input[name="toilet_location"]:checked')?.value || 'outside';
const tt = $('input[name="toilet_type"]:checked')?.value || 'pee';
if (tt === 'poop') {
// Poop rating uses 1..7, default to 4
this.data.rating = parseInt($('#poop_score')?.value || '4', 10);
// Poop rating uses 1..7, default to 2
this.data.rating = parseInt($('#poop_score')?.value || '2', 10);
this.data.subType = 'poop';
this.data.amount = null;
} else {
Expand Down
2 changes: 1 addition & 1 deletion pethub/frontend/src/pages/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function WizardBody({ wizard, setWizard, petId, saving, onSave }) {
value={subType}
onChange={(v) => {
setSubType(v);
setRating(v === 'pee' ? 7 : 4);
setRating(v === 'pee' ? 7 : 2);
}}
options={[
{ value: 'pee', label: 'Pee', icon: '💦' },
Expand Down