Manos Chorianopoulos

fix null merchant image crash

......@@ -237,8 +237,8 @@ extension UIImage {
} else {
//No cache, so create new one and set image
let url = URL(string: urlString)
URLSession.shared.dataTask(with: url!, completionHandler: { (data, response, error) in
if let url = URL(string: urlString) {
URLSession.shared.dataTask(with: url, completionHandler: { (data, response, error) in
if let error = error {
print(error)
return
......@@ -254,6 +254,7 @@ extension UIImage {
}).resume()
}
}
}
}
typealias GradientPoints = (startPoint: CGPoint, endPoint: CGPoint)
......