diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs index 157f57f..79f0a66 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs @@ -415,7 +415,7 @@ namespace VPet_Simulator.Windows if(e.Key == Key.Enter && int.TryParse(TbPage.Text?.Trim(), out int page)) { - pagination.CurrentPage = Math.Min(0, Math.Max(pagination.MaxPage, page)); + pagination.CurrentPage = Math.Max(0, Math.Min(pagination.MaxPage, page)); } } }