diff LazyBear/Views/Company/Chart.swift @ 402:8357b101df67

Implementing CompanyView in NavigationLinks
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Fri, 21 May 2021 23:39:40 +0200
parents f843c6382529
children fd8df65927e9
line wrap: on
line diff
--- a/LazyBear/Views/Company/Chart.swift	Thu May 20 21:04:49 2021 +0200
+++ b/LazyBear/Views/Company/Chart.swift	Fri May 21 23:39:40 2021 +0200
@@ -24,8 +24,8 @@
             VStack {
                 DatePicker(ranges: ranges, selectedRange: $selectedRange)
                     .onChange(of: selectedRange, perform: { range in
-//                        let url = "https://api.lazybear.app/company/chart/type=init/symbol=\(symbol)/range=\(range)"
-//                        company.request(url, .refresh, "chart")
+                        let url = "https://api.lazybear.app/company/chart/type=refresh/symbol=\(symbol)/range=\(range.lowercased())"
+                        company.request(url, .refresh, "chart")
                     })
                 
                 RoundedRectangle(cornerRadius: 15)