fix conversion for mxn and try currencies
This commit is contained in:
		
							parent
							
								
									d7676019d0
								
							
						
					
					
						commit
						eb46aaa3b5
					
				
					 3 changed files with 8 additions and 3 deletions
				
			
		|  | @ -26,9 +26,14 @@ export const convertPrice = async (price, curr, rate) => { | ||||||
|       price = price.replace("S/.", ""); |       price = price.replace("S/.", ""); | ||||||
|       break; |       break; | ||||||
|     } |     } | ||||||
|  |     case "try": { | ||||||
|  |       price = price.replace(".", "").replace(",", "."); | ||||||
|  |       break; | ||||||
|  |     } | ||||||
|     case "clp": |     case "clp": | ||||||
|     case "cop": |     case "cop": | ||||||
|     case "twd": { |     case "twd": | ||||||
|  |     case "mxn": { | ||||||
|       break; |       break; | ||||||
|     } |     } | ||||||
|     default: |     default: | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| { | { | ||||||
|   "name": "Kobo Price", |   "name": "Kobo Price", | ||||||
|   "description": "Find lowest book price on kobo.com", |   "description": "Find lowest book price on kobo.com", | ||||||
|   "version": "1.2.0", |   "version": "1.2.1", | ||||||
|   "manifest_version": 3, |   "manifest_version": 3, | ||||||
|   "content_scripts": [ |   "content_scripts": [ | ||||||
|     { |     { | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	Add table
		
		Reference in a new issue